﻿<div class="site-block form">
    <div class="header">
        @ViewBag.ActiveUrl.Title
    </div>
    @*<form action="@ViewBag.ActiveUrl.Url" id="_f" class="{hashPwd:1}">*@

    @using (Html.Kaio().BeginForm(new jQueryAjaxOptions() { HashPwd = true, Loading = true }, new { @id = "_f" }))
    {

        @Html.AntiForgeryToken()
        <table>
                      

            <tr>
                <td class="w30">
                    @ForumContext.GetMvcText(LanguageSection.CHANGE_EMAIL_PASSWORD, "OLD_PWD") (<span
                                                                                                    class="required">*</span>)
                </td>
                <td>
                    @Html.Password("oldpwd", "", new {@class = "input {validate:{required:1}}"})
                </td>
            </tr>

            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.CHANGE_EMAIL_PASSWORD, "NEW_PWD") (<span
                                                                                                    class="required">*</span>)
                </td>
                <td>
                    @Html.Password("pwd", "", new {@class = "input"})
                </td>
            </tr>
        
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.CHANGE_EMAIL_PASSWORD, "RE_PWD")
                </td>
                <td>
                    @Html.Password("repwd", "", new {@class = "input {validate:{equalTo:'#pwd'}}"})
                </td>
            </tr>
            <tr>
                <td class="caption" colspan="2">
                    @ForumContext.GetMvcText(LanguageSection.CHANGE_EMAIL_PASSWORD, "CHANGE_EMAIL")
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.CHANGE_EMAIL_PASSWORD, "NEW_EMAIL")
                </td>
                <td>
                    @Html.TextBox("email", ForumContext.UserInfo.Email, new {@class = "input {validate:{required:1,email:1}}"})
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.CHANGE_EMAIL_PASSWORD, "RE_EMAIL")
                </td>
                <td>
                    @Html.TextBox("remail", ForumContext.UserInfo.Email, new {@class = "input {validate:{required:1,equalTo:'#email'}}"})
                </td>
            </tr>
            <tr>
                <td colspan="2" class="center">
                    @Html.Link("javascript://", ForumContext.GetText(LanguageSection.GLOBAL, "UPDATE"), new {@class = "ui-button", @onclick = "$('#_f').submit()"})
                </td>
            </tr>
        </table>
    }
</div>
